import { DiaryUnitModel } from "@/model/DiaryUnitModel";
import type { DiaryUnitVData } from "@/vdata/DiaryUnitVData";

export class ModelTransformer {
    static getDiaryUnitModel(unitVData:DiaryUnitVData,userId:number):DiaryUnitModel {
        let model = new DiaryUnitModel();
        model.id = null;
        model.userId = userId;
        model.categoryId = 1;
        model.subject = unitVData.subject;
        model.content = unitVData.content;
        model.extra = "{}";
        model.diaryId = 1;
        model.reviewCount = 1;
        return model;
    }
}